#pragma once
#include "cmd2model.h"
#include "cBoundingBox.h"

class cBicho :
	public cMD2Model
{
public:
	cBicho(void);
	~cBicho(void);
	void setX(GLfloat x);
	void setZ(GLfloat y);
	void setAlpaRotate(GLfloat alpha);
	GLfloat getX();
	GLfloat getZ();
	GLfloat getAlphaRotate();
	GLfloat getSpeed();
	void setSpeed(float speed);
	void setRunning(bool running);
	bool getRunning();
	void RenderBicho(float n);
	bool Collides(int*map);
	bool Collides2(int*map);
	bool CollidesBox(cBoundingBox box);
	void setBoundingBox(cBoundingBox b);
	cBoundingBox getBoundingBox();
	void setStateTick(int tick);
	int getStateTick();
	void incrAttackTick();
	void decrHealth();

	void RenderBoundingBox(bool b);
	void EixCoordenades();
	void UpdateBoundingBox();
	int getTileX();
	int getTileZ();

	GLfloat getMaxXBoundingBoxBicho();
	GLfloat getMinXBoundingBoxBicho();
	GLfloat getMaxYBoundingBoxBicho();
	GLfloat getMinYBoundingBoxBicho();
	GLfloat getMaxZBoundingBoxBicho();
	GLfloat getMinZBoundingBoxBicho();

	cBoundingBox Box;


	int getLife();
	void setLife(int life2);
	bool getAlive();
	int getHealth();
	void setHealth(int health2);


	GLfloat x;
	GLfloat z;
	GLfloat alpha_rotate;
	GLfloat speed;
	bool running;
	int state_tick;
	int health;
	bool alive;


	int life;
};

